package dao.connectortodb;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class DistributerProperties {

	private Properties property = new Properties();
	private static final String SORRY = "Sorry properties file not found";
	private String url_driver = "url_driver";
	private String user = "user";
	private String password = "password";
	private String driverName = "driverName";

	public DistributerProperties() {
		try {
			property.load(new FileReader("jdbc.properties"));
		} catch (IOException e) {
			System.out.println(SORRY);
		}
	}

	public String getUrlDriver() {
		return property.getProperty(url_driver);
	}

	public String getUser() {
		return property.getProperty(user);
	}

	public String getPassword() {
		return property.getProperty(password);
	}

	public String getDriverName() {
		return property.getProperty(driverName);
	}

}
